package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @author cjr
 */
@Data
public class OrderConfirmRequest {
    @ApiModelProperty(value = "商品列表", dataType = "OrderConfirmRequest.Goods")
    private List<Goods> goodsList;

    @ApiModel("OrderConfirmRequest.Goods")
    @Data
    @Builder
    public static class Goods {
        @ApiModelProperty(value = "购物车ID,可为空")
        private Integer shopChatId;
        @ApiModelProperty(value = "商品规格ID", required = true)
        private Integer specId;
        @ApiModelProperty(value = "商品数量", required = true)
        private Integer num;
        @ApiModelProperty("拼团ID,可为空")
        private Integer groupId;
    }
}
